<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.4"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Flow: flow::util::Noncopyable Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">Flow<span id="projectnumber">&#160;2.0.0</span>
   </div>
   <div id="projectbrief">Flow project: Public API.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceflow.html">flow</a></li><li class="navelem"><a class="el" href="namespaceflow_1_1util.html">util</a></li><li class="navelem"><a class="el" href="structflow_1_1util_1_1Noncopyable.html">Noncopyable</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="structflow_1_1util_1_1Noncopyable-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">flow::util::Noncopyable Struct Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Useful as a no-unique-address private member to make a type noncopyable while keeping that type an aggregate (can be direct-initialized).  
 <a href="structflow_1_1util_1_1Noncopyable.html#details">More...</a></p>

<p><code>#include &lt;util.hpp&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac59627ad248129dd7b37d2d9286761cf"><td class="memItemLeft" align="right" valign="top"><a id="ac59627ad248129dd7b37d2d9286761cf" name="ac59627ad248129dd7b37d2d9286761cf"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Noncopyable</b> ()=default</td></tr>
<tr class="memdesc:ac59627ad248129dd7b37d2d9286761cf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Makes it possible to instantiate. <br /></td></tr>
<tr class="separator:ac59627ad248129dd7b37d2d9286761cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14a71cd2314f39996c2609ab383145e8"><td class="memItemLeft" align="right" valign="top"><a id="a14a71cd2314f39996c2609ab383145e8" name="a14a71cd2314f39996c2609ab383145e8"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Noncopyable</b> (const <a class="el" href="structflow_1_1util_1_1Noncopyable.html">Noncopyable</a> &amp;)=delete</td></tr>
<tr class="memdesc:a14a71cd2314f39996c2609ab383145e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Forbid copying. <br /></td></tr>
<tr class="separator:a14a71cd2314f39996c2609ab383145e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50501b7b5fcc26f2bcb4503c7b32a360"><td class="memItemLeft" align="right" valign="top"><a id="a50501b7b5fcc26f2bcb4503c7b32a360" name="a50501b7b5fcc26f2bcb4503c7b32a360"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="structflow_1_1util_1_1Noncopyable.html">Noncopyable</a> &amp;)=delete</td></tr>
<tr class="memdesc:a50501b7b5fcc26f2bcb4503c7b32a360"><td class="mdescLeft">&#160;</td><td class="mdescRight">Forbid copying. <br /></td></tr>
<tr class="separator:a50501b7b5fcc26f2bcb4503c7b32a360"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >Useful as a no-unique-address private member to make a type noncopyable while keeping that type an aggregate (can be direct-initialized). </p>
<p >So you can do: <code>[[no_unique_address]] <a class="el" href="structflow_1_1util_1_1Noncopyable.html" title="Useful as a no-unique-address private member to make a type noncopyable while keeping that type an ag...">flow::util::Noncopyable</a> m_nc{};</code>.</p>
<h3>Rationale</h3>
<p >The usual technique of deriving from <code>boost::noncopyable</code> disables aggregateness. In C++20 declaring a <code>= delete</code> copy ctor also disables it. This trick still works though. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>util/<a class="el" href="util_2util_8hpp.html">util.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Mar 28 2025 22:55:32 for Flow by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4
</small></address>
</body>
</html>
